﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerViews/Manager.Master" AutoEventWireup="true" CodeBehind="UserManager.aspx.cs" Inherits="BestBuy.ManagerViews.UserManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_buyer" data-toggle="tab">&nbsp; Buyer</a></li>
            <li><a href="#tab_seller" data-toggle="tab">Seller</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane  active" id="tab_buyer">
                <h3> Buyer actived (<asp:Label ID="lbBuyerActived" runat="server"></asp:Label> user) </h3>
                <asp:GridView ID="gvBuyer" runat="server" AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="Username" />
                        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" />
                        <asp:BoundField DataField="GoldMemberDueTo" HeaderText="Gold Member Due To" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Block" id="btnBlock" runat="server" OnClick="btnBlock_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />                                
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    
                </asp:GridView>
            <hr />
                <h3> Buyer Locked (<asp:Label ID="lbBuyerLocked" runat="server"></asp:Label> user)</h3>
                <asp:GridView ID="gvBuyerLocked" runat="server" AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="Username" />
                        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" />
                        <asp:BoundField DataField="GoldMemberDueTo" HeaderText="Gold Member Due To" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Active" id="btnActive" runat="server" OnClick="btnActive_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />                                
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    
                </asp:GridView>

            </div>

            <div class="tab-pane" id="tab_seller">
                <h3> Seller Actived (<asp:Label ID="lbSellerActived" runat="server"></asp:Label> user)</h3>
                <asp:GridView ID="gvSeller" runat="server" AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="Username" />
                        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" />
                        <asp:BoundField DataField="GoldMemberDueTo" HeaderText="Gold Member Due To" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Block" id="btnBlock" runat="server" OnClick="btnBlock_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />                                
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            <hr />
                <h3> Seller Locked (<asp:Label ID="lbSellerLocked" runat="server"></asp:Label> user)</h3>
                <asp:GridView ID="gvSellerLocked" runat="server" AutoGenerateColumns="False" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="Username" />
                        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" />
                        <asp:BoundField DataField="GoldMemberDueTo" HeaderText="Gold Member Due To" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Active" id="btnActive" runat="server" OnClick="btnActive_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />                                
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>

            </div>
        </div>
    </div>

</asp:Content>
